function prepareSlideshow(){
	if(!document.getElementsByTagName)
		return false;
	if(!document.getElementById)
		return false;
	if(!document.getElementById("linklist"))                                                                     
		return false;
	/*if(!document.getElementById("preview"))
		return false;*/
	var slideshow=document.createElement("div");
	slideshow.setAttribute("id","slideshow");
	//将img元素插入到div中
	var preview=document.createElement("img");
	preview.style.position="absolute";
	preview.style.left="0px";
	preview.style.top="0px";
	preview.setAttribute("src","pic/432-240.jpg");
	preview.setAttribute("alt","building blocks of web design");
	preview.setAttribute("id","preview");
	slideshow.appendChild(preview);
	//插入完成后的div ID是slideshow
	/*preview.style.position="absolute";
	preview.style.left="0px";
	preview.style.top="0px";*/
	var list=document.getElementById("linklist");
	insertAfter(slideshow,list);
	var links=list.getElementsByTagName("a");
	links[0].onmouseover=function(){
		moveMessage("preview",-108,0,10);
		//alert("0");
	}
	links[1].onmouseover=function(){
		moveMessage("preview",-216,0,10);
		//alert("1");
	}
	links[2].onmouseover=function(){
		moveMessage("preview",-324,0,10);
		//alert("2");
	}
}
addLoadEvent(prepareSlideshow);